#pragma once


// CFilyMemCDC

class SYSINTERFACEPRODLLEXPORT CFilyMemCDC : public CDC
{
public:
	CFilyMemCDC(CDC* pDC, const CRect* pRect = NULL);
	virtual ~CFilyMemCDC();
private:         
    CBitmap    m_bitmap;        // Offscreen bitmap  
    CBitmap*       m_oldBitmap; // bitmap originally found in CMemDC  
    CDC*       m_pDC;           // Saves CDC passed in constructor  
    CRect      m_rect;          // Rectangle of drawing area.  
    BOOL       m_bMemDC;        // TRUE if CDC really is a Memory DC.  
public:  
    CFilyMemCDC* operator->()   
    {  
        return this;  
    }         
   
    // Allow usage as a pointer      
    operator CFilyMemCDC*()   
    {  
        return this;  
    }  

};


